package com.homework.vehicle;

import com.homework.vehicle.Auto.AutoMobile;
import com.homework.vehicle.Auto.Car;
import com.homework.vehicle.Auto.Tank;
import com.homework.vehicle.Auto.Truck;
import com.homework.vehicle.Plane.AirLiner;
import com.homework.vehicle.Plane.FighterPlane;
import com.homework.vehicle.Plane.Plane;
import com.homework.vehicle.Ship.Ship;
import com.homework.vehicle.Ship.WarShip;
import com.homework.vehicle.Ship.Yacht;

/**
 * @author xiyu
 * @version 1.0
 * @date 2025/3/26 19:45
 * @description
 */
public class vehicleTest {
    public static void main(String[] args) {

        AutoMobile car = new Car("汽车类","小汽车");
        AutoMobile tank = new Tank("汽车类","坦克");
        AutoMobile truck = new Truck("汽车类","卡车");

        Plane airLiner = new AirLiner("飞机类","客机");
        Plane fighterPlane = new FighterPlane("飞机类","战斗机");

        Ship yacht = new Yacht("船类","游艇");
        Ship warShip = new WarShip("船类","军舰");

        car.getInfo();car.atk();
        tank.getInfo();tank.atk();
        truck.getInfo();truck.atk();
        System.out.println("-----------------------------");
        airLiner.getInfo();airLiner.atk();
        fighterPlane.getInfo();fighterPlane.atk();
        System.out.println("-----------------------------");
        yacht.getInfo();yacht.atk();
        warShip.getInfo();warShip.atk();
        System.out.println("-----------------------------");


    }
}
